<?php
    $tags = $args['tags'] ?? [];

    if (empty($tags)) {
        return;
    }
       
?>
<div class='b1_tags'>
    <?php
    foreach ($tags as $tag) {
        echo "<a>{$tag['name']}</a>";
    }
    ?>
</div>

<style>
    .b1_tags {
        display: flex;
        flex-wrap: wrap;
        gap: var(--gap);
        background-color: #eee;
        margin:-1rem 0 1rem 0;
        justify-content: end;
        padding: 1rem;
    }
    .b1_tags a {
        padding: 0.5rem 1rem;
        background-color: #fff;
        border-radius: 2rem;
        font-size: 0.8rem;
    }


</style>